	<table class="reps">
    <tr class="head">
      <th>
        {% if candidates_table %}
          Candidate
        {% else %}
          Representative
        {% endif %}
      </th>
      <th colspan="2" class="related-material">Related material</th>
    </tr>
    {% for rep in reps %}
    <tr class="{% cycle 'odd' 'even' %}">
      <td class="rep-info">
        <img height="36" width="30" src="{% if rep.photo %}{{ rep.photo.url }}{% else %}{{ MEDIA_URL }}images/op_blank_thumb.png{% endif %}"/>
        <h4><a href="{% url reps_profile rep.id %}">{{ rep.get_full_name }}</a></h4>
        {% if rep.office %}<div>{{ rep.office }}, {{ rep.get_district_name }}</div>{% endif %}
        {% if rep.candidate_election %}<div class="candidate">Candidate for {{ rep.candidate_office }}, {{ rep.get_candidate_district_name }}</div>{% endif %}
			</td>
			<td class="related-material">
        <ul{% if rep.news.active %} class="related-content"{% endif %}>
          <li>{{ rep.news.posts.count }} Blog posts</li>
          <li>{{ rep.news.reports.count }} Reports</li>
        </ul>
      </td>
      <td>
        <a class="full-profile" href="{% url reps_profile rep.id %}">View full profile &raquo;</a>
			</td>
    </tr>
    {% endfor %}
  </table>
